﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Flame.Dlr
{
    public static class PathsHelper
    {
#if DEVELOPPING || DEBUG
        public const string MainPath = "..\\..\\Data";
#else
        public const string MainPath = ".\\Data";
#endif

        public static string GetExePath(string relativepath)
        {
            return System.IO.Path.Combine(".", relativepath);
        }

        public static string GetMainPath(string relativepath)
        {
            return System.IO.Path.Combine(MainPath, relativepath);
        }

        static string fullname(string name)
        {
            return new System.IO.FileInfo(name).FullName;
        }

        public static string GetMainPathFullName(string relativepath)
        {
            return fullname(GetMainPath(relativepath));
        }

        public static string MainPathFullName
        {
            get
            {
                return fullname(MainPath);
            }
        }
    }
}
